<?php
/*
 * @Author: 李志刚
 * @CopyRight: 2020-2030 衡水山木枝技术服务有限公司
 * @Date: 2021-10-19 11:03:36
 * @Description: 商品与平台分类关联关系
 * @LastEditors: 李志刚
 * @LastEditTime: 2021-10-19 18:06:47
 * @FilePath: /归档/base/2021_10_19_110336_create_good_cate.php
 */

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateGoodCate extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('good_cate', function (Blueprint $table) {
            $table->engine = 'InnoDB';
            $table->foreignId('good_id')->comment('商品ID');
            $table->foreignId('good_category_id')->comment('分类ID');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('good_cate');
    }
}
